﻿function resizeImage(elementId, width, height) {
        var img = document.getElementById(elementId);
        if (img) {
            img.style.width = width + 'px';
            img.style.height = height + 'px';
        }
    }
